-- GENERATED SPELL FOR [Risen Shadowcaster] --


function spell0_27600(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(51363,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27600', 2000, 1)
end

function spell1_27600(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(59016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27600', 2000, 1)
end

function Sorts_27600(pUnit, Event)
local choix_sorts_27600 = math.random(0, 1)
if choix_sorts_27600 == 0 then
pUnit:RegisterEvent('spell0_27600', 1, 1)
end
if choix_sorts_27600 == 1 then
pUnit:RegisterEvent('spell1_27600', 1, 1)
end
end

function mob27600_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27600', math.random(1500, 3000), 1)
end

function mob27600_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27600_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27600_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27600, 1, 'mob27600_Action')
RegisterUnitEvent(27600, 2, 'mob27600_Leave')
RegisterUnitEvent(27600, 3, 'mob27600_Kill')
RegisterUnitEvent(27600, 4, 'mob27600_Die')
